package com.regex.web.entity.gen;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.regex.web.entity.StrIdBaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ocean.ma
 * @since 2019-07-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("gen_field_info")
public class FieldInfoDTO extends StrIdBaseEntity {

    private static final long serialVersionUID = 1L;

    @TableField("table_id")
    private String tableId;

    /**
     * 字段名
     */
    @TableField("capital_name")
    private String capitalName;

    /**
     * 字段类型
     */
    @TableField("column_type")
    private String columnType;

    /**
     * 注释
     */
    @TableField("comment")
    private String comment;

    /**
     * 是否覆盖
     */
    @TableField("convert_info")
    private Boolean convertInfo;

    @TableField("key_flag")
    private Boolean keyFlag;

    @TableField("key_identity_flag")
    private Boolean keyIdentityFlag;

    /**
     * 字段名称
     */
    @TableField("name")
    private String name;

    /**
     * 字段名
     */
    @TableField("property_name")
    private String propertyName;

    /**
     * 字段类型
     */
    @TableField("property_type")
    private String propertyType;

    /**
     * 数据库类型
     */
    @TableField("type")
    private String type;

    /**
     * 页面标签
     */
    @TableField("html_type")
    private String htmlType;

    /**
     * 字典
     */
    @TableField("dict_value")
    private String dictValue;

    /**
     * 最大长度
     */
    @TableField("max_length")
    private Integer maxLength;

    /**
     * 是否允许空
     */
    @TableField("not_null")
    private String notNull;

    /**
     * 列表展示
     */
    @TableField("is_show")
    private String isShow;
    
    /**
     * 查询字段
     */
    @TableField("is_select")
    private String isSelect;

    
    @Override
    protected Serializable pkVal() {
        return super.pkVal();
    }

    @Override
    public String toString() {
        return "FieldInfoDTO{" +
        "tableId=" + tableId +
        ", capitalName=" + capitalName +
        ", columnType=" + columnType +
        ", comment=" + comment +
        ", convertInfo=" + convertInfo +
        ", keyFlag=" + keyFlag +
        ", keyIdentityFlag=" + keyIdentityFlag +
        ", name=" + name +
        ", propertyName=" + propertyName +
        ", propertyType=" + propertyType +
        ", type=" + type +
        ", htmlType=" + htmlType +
        ", dictValue=" + dictValue +
        ", maxLength=" + maxLength +
        ", notNull=" + notNull +
        ", isShow=" + isShow +
        "}";
    }
}
